package com.client.koshercook.server;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

/** Creating an object with Key of a recipe and its weight
 * Calculating the weight is implemented in this class*/
@PersistenceCapable
public class RecipesWithAlsoNeed implements IsSerializable{
    	@PrimaryKey
	    @Persistent
		private Recipes recipe;
		
		@Persistent
		private String alsoNeed;
		
		/** placing the elements*/
		public RecipesWithAlsoNeed(Recipes recipe, String alsoNeed) {
			this.recipe = recipe;
			this.alsoNeed = alsoNeed;
		}
		
		/**get the recipe*/
		public Recipes getRecipe() {
			return recipe;
		}
		
		/**get the calculated weight of the recipe*/
		public String getAlsoNeed() {
			return alsoNeed;
		}

	
}

